<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]

    <script type="text/javascript">
        var grid;
        function f_export_loan(){
            $("#exportForm").submit();
        }
        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [

                    {display: 'id', name: 'id', align: 'center', width: 100 },
                    {display: '名称', name: 'name', align: 'center', width: 100 },
                    {display: '英文名称', name: 'cate_name', align: 'center', width: 100 },
                    {display: '修改', name: 'name', align: 'center', width: 100,
                        render: function(row){
                            var html = '<input value="修改" style="cursor:pointer" type="button" onclick="f_change('+row.id+')">';
                            return html;

                        }
                    },
                    {display: '删除', name: 'name', align: 'center', width: 100,
                        render: function(row){
                            var html = '<input value="删除" style="cursor:pointer" type="button" onclick="f_delete('+row.id+')">';
                            return html;

                        }
                    }
                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });
            $(".l-toolbar").ligerToolBar({ items: [
                { text: '增加', click: f_add1 }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });
        function f_add1(){
            window.location.href =  base+'/admin/articleCate/add.aspx';
        }
		function f_change(id){
            window.location.href =  base+'/admin/articleCate/add.aspx?typeId='+id;
		}
		function f_delete(id){
            window.location.href  =  base+"/admin/articleCate/delete.aspx?typeId="+id;
		}
    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">

        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>